import request from '@/utils/request'
const apix = 'dev-api'
// api地址
const api = {
	merchants_list: apix + '/integral/merchants/list',
	merchants_export: apix + '/integral/merchants/export',
	integral_merchants: apix + '/integral/merchants/',
	// integral_merchants: apix + '/integral/merchants',
	integral_merchantsIds: apix + '/integral/merchants/',
}

//查询商家信息列表
export function merchantsList(obj) {
	return request.get(api.merchants_list, {
		...obj
	})
}
//导出商家信息列表
export function merchantsExport(obj) {
	return request.post(api.merchants_export, {
		...obj
	})
}
//获取商家信息详细信息
export function merchantsId(id) {
	return request.get(api.integral_merchants + id)
}
//新增商家信息
export function addmerchants(obj) {
	return request.post(api.integral_merchants, {
		...obj
	})
}
//修改商家信息
export function putmerchants(obj) {
	return request.put(api.integral_merchants, {
		...obj
	})
}
//删除商家信息
export function delmerchants(id) {
	return request.delete(api.integral_merchants + id)
}